package cn.com.surker.control.dao;

import cn.com.surker.control.entity.ControlExpend;
import cn.com.surker.production.entity.ProductionInvoice;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 工控机原始消耗表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2025-01-06
 */
public interface ControlExpendDao extends BaseMapper<ControlExpend> {

	/**
	 * 查询盘消耗下的详情
	 *
	 * @param batchId
	 * @return
	 */
	List<ControlExpend> findByBatchId(String dbCode, Long batchId);

	List<ControlExpend> findErpNolab(@Param(Constants.WRAPPER) QueryWrapper<ControlExpend> qw);
}
